require 'active_record/fixtures'
class CreateReports < ActiveRecord::Migration
  def self.up
    create_table :reports do |t| 
      t.column :name, :string
      t.column :description, :text
      t.column :erb_report_input, :text
      t.column :erb_query, :text
      t.column :erb_report_output, :text
      t.column :created_at, :datetime
      t.column :updated_at, :datetime
    end

    # Report.delete_all
    #     directory = File.join(File.dirname(__FILE__), "init_fixtures")
    #     Fixtures.create_fixtures(directory, "reports")     
  end

  def self.down
    drop_table :reports
  end
end
